package com.platform.service.impl;

import com.platform.dao.CircleDao;
import com.platform.entity.CircleEntity;
import com.platform.service.CircleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-06-24 15:04:12
 */
@Service("circleService")
public class CircleServiceImpl implements CircleService {
    @Autowired
    private CircleDao circleDao;

    @Override
    public CircleEntity queryObject(Long id) {
        return circleDao.queryObject(id);
    }

    @Override
    public List<CircleEntity> queryList(Map<String, Object> map) {
        return circleDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return circleDao.queryTotal(map);
    }

    @Override
    public int save(CircleEntity apiCircle) {
        return circleDao.save(apiCircle);
    }

    @Override
    public int update(CircleEntity apiCircle) {
        return circleDao.update(apiCircle);
    }

    @Override
    public int delete(Long id) {
        return circleDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return circleDao.deleteBatch(ids);
    }
}
